package com.itheima.obj;

import java.math.RoundingMode;
import java.util.Arrays;
import java.util.Objects;

/**
 * // 看程序,分析结果
 * String s = “abc”;
 * StringBuilder sb = new StringBuilder(“abc”);
 * s.equals(sb);
 * sb.equals(s);
 */
public class MianShiTi {

    public static void main(String[] args) {
        String s = "abc";
        StringBuilder sb = new StringBuilder("abc");
        System.out.println(s.equals(sb.toString()));
        System.out.println(sb.toString().equals(s));
    }
}
